package framework.office.apache.poi.style;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFDataFormat;
import org.apache.poi.ss.usermodel.CellStyle;
public class XlsStyle {
	public static HSSFCellStyle getStyle(HSSFCellStyle style) {
		// 保留两位小数
		style.setDataFormat(HSSFDataFormat.getBuiltinFormat("0.00"));
		style.setBorderBottom(CellStyle.BORDER_DOUBLE);
		style.setBottomBorderColor((short) 34);
		return style;
	}
}
